<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P139 【例6-5】demo05.html</title>
</head>

<body>
    <input type="button" value="前进" onclick="goForward()">
    <input type="button" value="新网页" onclick="newPage()">
    <script>
        function newPage() {
            window.location.assign('show.html');
        }
        function goForward() {
            history.go(1);
        }
    </script>
    <input type="button" value="后退" onclick="goBack()">
    <script>
        function goBack() {
            history.go(-1);
        }
    </script>
    <a href="../首页/page06.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>